package cn.kai.basic.constant;

public class BaseConstant {

    public class SmsConstant{
        //用户名
        public static final String UID = "jkai";
        //短信密钥
        public static final String KEY = "657E804F04DB60B470F0D354078AAF0E";
    }

    public class VerfityCodeCons{
        // 手机号注册 验证码的rediskey
        public static final String REGISTER_SMSCODE_PHONE = "register:smscode:%s";

        // 邮箱注册 验证码的rediskey
        public static final String REGISTER_SMSCODE_EMAIL = "register:smscode:%s";

        // 手机号绑定 验证码的rediskey
        public static final String BINDER_SMSCODE_PHONE = "binder:smscode:%s";

    }

    public class WeChatCodeCons{
        // 微信二次请求地址 ： 通过code获取token以及openId
        public static final String WX_LOGIN_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";

        // appid
        public static final String WX_LOGIN_TOKEN_APPID = "wxd853562a0548a7d0";

        // secret
        public static final String WX_LOGIN_TOKEN_SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

        // 微信登陆请求获取用户信息
        public static final String WX_LOGIN_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
    }

}
